package com.example.work4

import android.app.Application
import com.baidu.mapapi.CoordType
import com.baidu.mapapi.SDKInitializer
import com.example.work4.baiduMapSDK.LocationService
import com.xuexiang.xui.XUI

class DemoApp:Application() {

    var locationService:LocationService?=null



    override fun onCreate() {
        initXUI()
        initLocationService()
        super.onCreate()
    }

    private fun initLocationService() {
        locationService=LocationService(this)
        SDKInitializer.initialize(this);
        SDKInitializer.setCoordType(CoordType.BD09LL);
    }

    private fun initXUI() {
        XUI.init(this) //初始化UI框架
        XUI.debug(true) //开启UI框架调试日志
    }
}